CC=arm-apple-darwin-gcc -v
CXX=arm-apple-darwin-g++

LD=$(CC)
LDFLAGS = -Wl,-syslibroot,$(HEAVENLY) \
          -framework CoreFoundation \
          -framework Foundation \
          -framework UIKit \
          -framework LayerKit \
          -framework CoreGraphics \
          -framework GraphicsServices \
          -framework CoreSurface \
		  -framework CFNetwork \
		  -framework CoreTelephony \
          -lobjc -larmfp

all:	main

main:	main.o LocLib.o GeoPoint.o Celltower.o Location.o
	$(LD) $(LDFLAGS) -o $@ $^

%.o:	%.m
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

clean:
		rm -f *.o main

